﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="taglibs.jsp"%>
<%@include file="RolePowerManager.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <link rel="stylesheet" href="${ctx}/css/common.css" type="text/css"></link>
  <link rel="stylesheet" href="${ctx}/css/reset.css" type="text/css"></link>
<script type="text/javascript" src="${ctx}/js/transfer/transfer.js"></script>
  <script type="text/javascript" src="${ctx}/js/jquery-1.7.2.js"></script>
  <script type="text/javascript" src="${ctx}/js/jquery.easydrag.handler.beta2.js"></script>
   <script type="text/javascript" src="${ctx}/js/transfer/transfer.js"></script>
 <script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
 
 <script type='text/javascript' src='${ctx}/dwr/interface/TansferMag.js'></script>
 <script type='text/javascript' src='${ctx}/dwr/interface/DeptDAOImpl.js'></script>
 <script type='text/javascript' src='${ctx}/dwr/interface/DutyDAOImpl.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/EmpDAOImpl.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/dept_duty_empDAOImpl.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/engine.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/util.js'></script>

  </head>
  
  <body onload="getDept()">
  	  <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
			<TR height=28>
				<TD background=${ctx}/images/title_bg1.jpg style="FONT-SIZE: 12px;">
					当前位置:人事调配管理 >> 人事变动管理
				</TD>
			</TR>
			<TR>
				<TD bgColor=#b1ceef height=1></TD>
			</TR>
			<TR height=20>
				<TD background=${ctx}/images/shadow_bg.jpg></TD>
			</TR>
		</TABLE>
		<form action="serchEmp" method="post" id="form">
	  <div class="query" >
	  <label>如下显示缺员信息：</label>
      <div style="float: right; padding-right: 20px">
	  			<span class="STYLE1"><img src="${ctx}/images/001.gif" width="9" height="9" /></span>
            	<span class="STYLE1"> </span><a href="${ctx}/serchEmp">调动</a><span class="STYLE1"></span>
	  </div>
	  <div class="clear"></div>
	  </div>
	  </form>
        <div id="main">
        <table id="detail_t">
          <tr>
            <th>序号</th>
            <th>部门</th>
            <th>职称</th>
            <th>缺员</th>
          </tr>
            <c:forEach items="${page.list}" var="ty" varStatus="stat">
          <tr>
          
          	<td>${stat.index+1}</td>
          	<td>${ty.dept.name}</td>
          	<td>${ty.duty.name}</td>
          	<td>${ty.quenum}</td>
          </tr>
          </c:forEach>
        </table>
			<div class="manu">
				共${page.totalCount}条记录当前第
				<font color="#ff6600">${page.pageNo}/${page.pageCount}</font>页
				<a href="Meg_TransferServlet?pageNo=${1}">首页</a>
				<a href="Meg_TransferServlet?pageNo=${page.pageNo-1}">上一页</a>
				<a href="Meg_TransferServlet?pageNo=${page.pageNo+1}">下一页</a>
				<a href="Meg_TransferServlet?pageNo=${page.pageCount}">末页</a> 每页显示
				<input type="text" id="pageSize" name="pageSize" size="4" />
				条
				<input type="submit" value="提交"  onclick="changePageSize_meg()"/>
			</div>
		</div>
		
<div id="pop_div" class="pop_box">
			<div class="p_head">
				<span class="p_h_title">人事调配信息</span> <span><a
					class="p_h_close" onclick="hideDiv('pop_div');" title="close">X</a>
				</span>
			</div>
			<div class="p_box_body" id="p_b_body">
				<div class="p_con">
					<table id="p_con_t">
					<tr>
					<input type="hidden" id="transferid" value=""/>
					    <td class="t1">员工编号：<input type="hidden" id="empno" value=""/></td>
					    <td id="EmpTransfer"></td>
					  </tr>
					  <tr>
					    <td class="t1">调动前部门：</td>
					    <td><input type="text" id="beforedept" value=""/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动后部门：</td>
					    <td><input type="text" id="afterdept" value=""/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动前职务：</td>
					    <td><input type="text" id="beforeduty" value=""/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动后职务：</td>
					    <td><input type="text" id="afterduty" value=""/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动时间：</td>
					    <td><input value="" id="time" type="text"  onClick="WdatePicker()" size="10"/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动原因：</td>
					    <td><input type="text" id="reason" value="">
					    </td>
					  </tr>
					  <tr>
					  	<td></td>
					  	<td><input type="button" value="提交审核" onclick="checkInfo()"></td>
					  </tr>
					 
					  
					</table>
				</div>
			</div>
		</div> 
		<form action="addServlet" method="post">
<div id="pop_div2" class="pop_box">
			<div class="p_head">
				<span class="p_h_title">审核人事调配信息</span> <span><a
					class="p_h_close" onclick="hideDiv('pop_div2');" title="close">X</a>
				</span>
			</div>
			<div class="p_box_body" id="p_b_body">
				<div class="p_con">
					<table id="p_con_t">
					  <tr>
					    <td class="t1">员工编号：</td>
					    <td><input type="text" name="empno" onblur="update(this.value)"/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动前部门：<input type="hidden" id="b_dept" name="b_dept" value=""/></td>

					    <td id="beforedept2">
					    </td>

					  </tr>
					  <tr>
					    <td class="t1">调动后部门：</td>

					    <td><select id="dept2" name="dept_n2" >
					   		<option value=""></option>
					    </select></td>

					  </tr>
					  <tr>
					    <td class="t1">调动前职务：<input type="hidden" id="b_duty" name="b_duty" value=""/></td>

					    <td id="beforeduty2"></td>

					  </tr>
					  <tr>
					    <td class="t1">调动后职务：</td>

					    <td><select id="duty2" name="duty_n2" >
					   		<option value=""></option>
					    </select></td>

					  </tr>
					  <tr>
					    <td class="t1">调动时间：</td>
					    <td><input type="text" name="d_time"  onClick="WdatePicker()" size="10"/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动原因：</td>
					    <td><input type="text" name="reason">
					    </td>
					  </tr>
					  <tr>
					  	<td></td>
					  	<td><input type="submit" value="添加"/></td>
					  </tr>
					</table>
				</div>
			</div>
		</div>     
		</form>
  </body>
</html>
